package com.oracle.pojo.vo;

import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class OrderVo implements Serializable {

    private Integer oid; //订单号

    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date   startOrderDate; //订单时间

    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")

    private Date   endOrderDate; //订单时间

    private BigDecimal minPrice;  //总价的区间

    private BigDecimal maxPrice;

    public OrderVo(){
    }

    public OrderVo(Integer oid, Date startOrderDate,Date endOrderDate, BigDecimal minPrice, BigDecimal maxPrice) {
        this.oid = oid;
        this.startOrderDate = startOrderDate;
        this.endOrderDate = endOrderDate;
        this.minPrice = minPrice;
        this.maxPrice = maxPrice;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Date getStartOrderDate() {
        return startOrderDate;
    }

    public void setStartOrderDate(Date startOrderDate) {
        this.startOrderDate = startOrderDate;
    }

    public Date getEndOrderDate() {
        return endOrderDate;
    }

    public void setEndOrderDate(Date endOrderDate) {
        this.endOrderDate = endOrderDate;
    }

    public BigDecimal getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(BigDecimal minPrice) {
        this.minPrice = minPrice;
    }

    public BigDecimal getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(BigDecimal maxPrice) {
        this.maxPrice = maxPrice;
    }

    @Override
    public String toString() {
        return "OrderVo{" +
                "oid=" + oid +
                ", startOrderDate=" + startOrderDate +
                ", endOrderDate=" + endOrderDate +
                ", minPrice=" + minPrice +
                ", maxPrice=" + maxPrice +
                '}';
    }
}
